setQuery
Sets a query string in the text field and optionally submits the query as well.
Parameters
query
the query string. This replaces any query text already present in the text field.
submit
whether to submit the query right now or only update the contents of text field.